package com.example.demo.myInterface;

import com.example.demo.fallback.ServerFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@FeignClient(name = "provider",fallback = ServerFallBack.class)
public interface TestInterface {
    @RequestMapping(value = "/test")
    String test();

    @RequestMapping(value = "/snowslide")
    String snowslide();
}
